package com.model.auto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhaoyifan
 * @date 2024/12/15 17:40
 */
@Data
public class SourceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源类型  专业访谈:1 职业访谈:2 经典案例:3 升学资料:4
     */
    private Integer type;

    /**
     * 资源名称
     */
    private String name;

    /**
     * 资源首图
     */
    private String imageUrl;

    /**
     * 资源连接
     */
    private String hrefUrl;

    /**
     * 排序
     */
    private Integer sortNum;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createDate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateDate;
}
